QMAKE_CFLAGS_DEBUG -= -O2
QMAKE_CFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS_DEBUG -= -O2
QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS += -O2
QMAKE_CFLAGS += -O2

TARGET = colorcode

TEMPLATE = app

# Input
HEADERS += about.h \
    colorcode.h \
    colorpeg.h \
    msg.h \
    pegrow.h \
    rowhint.h \
    ccsolver.h \
    background.h \
    solutionrow.h \
    graphicsbtn.h \
    settings.h \
    prefdialog.h 
!symbian:{
    FORMS += about.ui \
    prefdialog.ui
}
symbian:{
    FORMS += about_s60.ui\
    prefdialog_s60.ui
}

SOURCES += about.cpp \
    colorcode.cpp \
    colorpeg.cpp \
    main.cpp \
    msg.cpp \
    pegrow.cpp \
    rowhint.cpp \
    ccsolver.cpp \
    background.cpp \
    solutionrow.cpp \
    graphicsbtn.cpp \
    settings.cpp \
    prefdialog.cpp
RESOURCES += resource.qrc
OTHER_FILES += docs/GPL.html
win32:RC_FILE = ColorCode.rc
TRANSLATIONS += trans_de.ts \
    trans_en.ts \
    trans_cs.ts \
    trans_ca.ts \
    trans_es.ts
CODECFORTR = UTF-8
CODECFORSRC = UTF-8

ICON = icon.svg

symbian:{
    #TARGET.UID3 = 
    MMP_RULES +="LIBRARY form.lib tagma.lib"
    LIBS +=-lcone \
            -leikcore \
            -lavkon
    DEFINES += EMULATOR

    default_deployment.pkg_prerules = \
        #";Language" \
        #"&EN,SP,CA,CS,GE" \
        " " \
        #"; SIS header: name, uid, version" \
        #"$${LITERAL_HASH}{\"ColorCode\"},(0xA000D7CE),0,6,1" \#Testing
        "$${LITERAL_HASH}{\"ColorCode\"},(0x20030CE7),0,6,1" \#Release
        " " \
        "; Localised Vendor name" \
        "%{\"ssorgatem\"}" \
        " " \
        "; Unique Vendor name" \
        ":\"ssorgatem\"" \
        " " \
        "; Default HW/platform dependencies" \
        "[0x1028315F],0,0,0,{\"S60ProductID\"}" \
        "[0x20022E6D],0,0,0,{\"S60ProductID\"}" \
        " "
    TARGET.UID3 = 0xDEADBEEF#Testing, must change

}
